package com.ordertracker.exception;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

/**
 * Description of class.
 * Created 2/5/13 3:48 PM
 *
 * @author andrey.rodin@playtech.com
 */

public class ConversionException extends WebApplicationException {
    private static final long serialVersionUID = -1247240786926149523L;

    public ConversionException(Response response) {
        super(Response.status(response.getStatus()).build());
    }

    public ConversionException(Throwable cause, Response response) {
        super(cause, response);
    }

    public ConversionException(String message, Response response) {
        this(new RuntimeException(message), response);
    }
}
